<?php 
get_header();
?>
	<div id="Ocontent">
		<div id="Opopup">	
		</div>
		<div id="Omainbox">
			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
          <div <?php post_class(); ?>>
            <h1 class="titlehead"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
            <?php the_content(); ?>
            <div class="clear"> </div>
          </div><!-- post_class() -->
			<?php endwhile; else: ?>
			  <div class="hentry"><h2>Not found</h2>
			  <p>Page you requested was not found. Please try again later.</p>
			  </div>
			<?php endif; ?>
			<?php if (is_404() ) : ?>
			  <div class="left"><h1>404 Not Found.</h1><a href="<?php bloginfo( 'url' ); ?>">You are lookin for a page that does not exist. Please Go back to home page.</a></div>
			<?php endif; ?>
			<div class="clear"> </div>
		</div>
	</div>
	<?php get_sidebar(); ?>
	<?php wp_footer(); ?>